<template>
	<view>
		<detailsNavbar :midTitle="midTitle"></detailsNavbar>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src:'https://www.zdwljy.com/privacy.html',
				src2:'https://www.zdwljy.com/privacy.html',
				midTitle:'隐私政策',
				midTitle2:'隐私政策'
			}
		},
		created() {
			// #ifdef APP-PLUS
			var currentWebview = this.$scope.$getAppWebview() //此对象相当于html5plus里的plus.webview.currentWebview()。在uni-app里vue页面直接使用plus.webview.currentWebview()无效，非v3编译模式使用this.$mp.page.$getAppWebview()
			setTimeout(function() {
			var wv = currentWebview.children()[0]
			wv.setStyle({top:70})
			}, 200); //如果是页面初始化调用时，需要延时一下
			// #endif			
		},
		onLoad(e) {
			if(e.src == '隐私政策'){
				this.src = this.src2
				this.midTitle = this.midTitle2
			}
		},
		onReady() {
			// #ifdef H5
			uni.setNavigationBarTitle({
			  title: this.midTitle
			});
			// #endif
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
